package com.qubuyer.business.good.adapter

import com.qubuyer.R
import com.qubuyer.databinding.ItemSoGoodListBinding
import com.qubuyer.repository.entitys.ShopCartGoodEntity
import com.qubyer.widget.adapter.BindingRvAdapter

/**
 * @author Susong
 * @date 创建时间2019/3/21
 * @description 提交订单商品列表adapter
 */
class SOGoodListAdapter : BindingRvAdapter<ShopCartGoodEntity, ItemSoGoodListBinding>() {
    override val itemLayout: Int
        get() = R.layout.item_so_good_list

    override fun onBind(data: ShopCartGoodEntity, dataBinding: ItemSoGoodListBinding) {
        dataBinding.host = this
        dataBinding.data = data
    }
}